#ifndef SAVECURVEDIALOG_H
#define SAVECURVEDIALOG_H

#include <QDialog>
#include <QFile>
#include <QLineEdit>
#include <QPushButton>

class SaveCurveDialog : public QDialog
{
    Q_OBJECT

public:
    SaveCurveDialog(QWidget *parent = nullptr);

    void setConfig(int period, const QString &fileName);
    void setStatus(bool isStart);

signals:
    void changeStatus(bool isStart);
    void changeConfig(int period, const QString &fileName);

private:
    QLineEdit *m_lePeriod;
    QLineEdit *m_leFileName;
    QPushButton *m_pbFileName;
    QPushButton *m_pbStatus;

    bool m_isStartd = false;
};

#endif // SAVECURVEDIALOG_H
